Integrand size = 37, antiderivative size = 224 \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {2} (A+C) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}} \]
[Out]
Time = 0.84 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.135, Rules used = {4172, 4107, 4098, 3893, 212} \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {2} (A+C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}-\frac {2 (43 A+35 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}} \]
[In]
[Out]
Rule 212
Rule 3893
Rule 4098
Rule 4107
Rule 4172
Rubi steps \begin{align*} \text {integral}& = \frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 \int \frac {-\frac {a A}{2}+\frac {1}{2} a (6 A+7 C) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{7 a} \\ & = \frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} a^2 (31 A+35 C)-a^2 A \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{35 a^2} \\ & = \frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {8 \int \frac {-\frac {1}{8} a^3 (43 A+35 C)+\frac {1}{4} a^3 (31 A+35 C) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{105 a^3} \\ & = \frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}+(A+C) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx \\ & = \frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {(2 (A+C)) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {\sqrt {2} (A+C) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}} \\ \end{align*}
Time = 3.44 (sec) , antiderivative size = 154, normalized size of antiderivative = 0.69 \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\frac {\left (-210 \sqrt {2} (A+C) \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \sqrt {\sec (c+d x)}-4 (101 A+70 C+24 A \cos (c+d x)+15 A \cos (2 (c+d x))) \sqrt {1-\sec (c+d x)} \sin ^2\left (\frac {1}{2} (c+d x)\right )\right ) \tan (c+d x)}{210 d \sqrt {-((-1+\sec (c+d x)) \sec (c+d x))} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Time = 1.01 (sec) , antiderivative size = 358, normalized size of antiderivative = 1.60
method | result | size |
default | \(\frac {\left (105 A \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )+30 A \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )+105 C \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )+105 A \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {2}-6 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )+105 C \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {2}+62 A \cos \left (d x +c \right ) \sin \left (d x +c \right )+70 C \cos \left (d x +c \right ) \sin \left (d x +c \right )-86 A \sin \left (d x +c \right )-70 C \sin \left (d x +c \right )\right ) \sqrt {a \left (1+\sec \left (d x +c \right )\right )}}{105 d a \left (\cos \left (d x +c \right )+1\right ) \sqrt {\sec \left (d x +c \right )}}\) | \(358\) |
parts | \(\frac {A \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (105 \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )^{2}+30 \sin \left (d x +c \right )+105 \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )^{3}-6 \tan \left (d x +c \right )+62 \sec \left (d x +c \right ) \tan \left (d x +c \right )-86 \sec \left (d x +c \right )^{2} \tan \left (d x +c \right )\right )}{105 d a \left (\cos \left (d x +c \right )+1\right ) \sec \left (d x +c \right )^{\frac {7}{2}}}+\frac {C \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (3 \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+3 \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )+2 \sin \left (d x +c \right )-2 \tan \left (d x +c \right )\right )}{3 d a \left (\cos \left (d x +c \right )+1\right ) \sec \left (d x +c \right )^{\frac {3}{2}}}\) | \(386\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 406, normalized size of antiderivative = 1.81 \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\left [\frac {\frac {105 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right ) + {\left (A + C\right )} a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}} + \frac {4 \, {\left (15 \, A \cos \left (d x + c\right )^{4} - 3 \, A \cos \left (d x + c\right )^{3} + {\left (31 \, A + 35 \, C\right )} \cos \left (d x + c\right )^{2} - {\left (43 \, A + 35 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{210 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}, -\frac {105 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right ) + {\left (A + C\right )} a\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - \frac {2 \, {\left (15 \, A \cos \left (d x + c\right )^{4} - 3 \, A \cos \left (d x + c\right )^{3} + {\left (31 \, A + 35 \, C\right )} \cos \left (d x + c\right )^{2} - {\left (43 \, A + 35 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{105 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 730 vs. \(2 (189) = 378\).
Time = 0.51 (sec) , antiderivative size = 730, normalized size of antiderivative = 3.26 \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\sqrt {a \sec \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx=\int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \]
[In]
[Out]